<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="notice">
    <div class="mainContainer">
        <div class="triangle"></div>
        <div class="innercontent">
            <div class="logo">
                <img src="notice.svg" alt=""/>
                <div class="text">请填写此字段</div>
            </div>
        </div>
    </div>
</div>


</body>
<style>

    .mainContainer{
        width:  200px;
        height: 50px;
        /*border: green 1px solid;*/
    }
    .innercontent{
        width:  150px;
        height: 40px;
        border: black 1px solid;
        border-radius: 0.25rem;

    }
    .innercontent .logo{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5px;
    }
    .innercontent img{
        width: 25px;
        height: 25px;
    }
    .triangle{
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid black;
        margin-left: 10px;

    }
    .triangle:after{
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid white;
        margin-left: -10px;
        margin-top: 1px;
    }
</style>
</html>